<template>
  <a-card :bordered="false" class="cpsc">
    <iframe
      src="https://www.yuque.com/crfxwe/sczaof"
      frameborder="0"
      id="cpscIframe"
      width="100%"></iframe>
  </a-card>
</template>

<script>
    export default {
        name: 'Cpsc',
        mounted () {
            const oIframe = document.getElementById('cpscIframe')
            const deviceHeight = document.documentElement.clientHeight
            oIframe.style.height = (Number(deviceHeight) - 200) + 'px' // 数字是页面布局高度差
        }
    }
</script>

<style lang="less">
    .cpsc {

        &.ant-card, .ant-card-body {
            height: 100%;
        }

    }

</style>
